package com.ysx.wemedia.service;

import com.ysx.exception.ToutiaoException;
import com.ysx.wemedia.pojo.WmUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 自媒体用户信息表 服务类
 * </p>
 *
 * @author ljh
 * @since 2021-09-08
 */
public interface WmUserService extends IService<WmUser> {
    //根据用户id查询自媒体账号
    WmUser selectByUserId(Integer userId);
    //登录自媒体系统成功签发token令牌
    Map<String, Object> loginSystemReturnToken(WmUser wmUser) throws ToutiaoException;
}
